#coding=utf-8
'''
Created on 2016年3月4日
'''


class ProcessorMeta(object):
    '''
    processor元信息
    '''
    
    def __init__(self, cls=None, internal_only=False, internal_access=False, web_access=False):
        '''
        :param cls: processor类
        :param is_internal: 是否仅仅支持内部调用
        :param web_access: 是否允许web调用(例如h5)
        :param internal_access: 是否支持内部调用
        '''
        
        assert not (internal_only and not internal_access)
        assert not (internal_only and web_access)
        
        self.cls = cls
        self.internal_only = internal_only
        self.web_access = web_access
        self.internal_access = internal_access

        